package com.jkm.boss.dao;

import org.springframework.stereotype.Repository;
import com.jkm.boss.entity.BasicChannel;
import com.jkm.rwseparate.DataSource;

import java.util.List;

/**
 * Created by shitou on 17/4/10.
 */
@Repository
public interface BasicChannelDao {
    /**
     * 查询
     * @return
     */
    @DataSource("read")
    List<BasicChannel> selectAll();

    @DataSource("default")
    BasicChannel selectById(long id);

    /**
     * 修改
     * @param basicChannel
     */
    void update(BasicChannel basicChannel);
    /**
     * 初始化
     * @param basicChannel
     */
    void init(BasicChannel basicChannel);


}
